From 5c561080e2331687bcea8443dacfa9857fe42623 Mon Sep 17 00:00:00 2001 From: "chris@kneesaa.uk.xensource.com" Date: Fri, 30 Jun 2006 14:15:12 +0100 Subject: [PATCH] Remove use of unlikely -- it's not defined on all systems. Signed-off-by: Christian Limpach --- tools/xenstat/libxenstat/src/xenstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/xenstat/libxenstat/src/xenstat.c b/tools/xenstat/libxenstat/src/xenstat.c index d6521f8edf..06e0142cb0 100644 --- a/tools/xenstat/libxenstat/src/xenstat.c +++ b/tools/xenstat/libxenstat/src/xenstat.c @@ -760,10 +760,10 @@ static int read_attributes_vbd(const char *vbd_directory, const char *what, char sprintf(file_name, "%s/%s/%s", SYSFS_VBD_PATH, vbd_directory, what); fd = open(file_name, O_RDONLY, 0); - if (unlikely(fd==-1)) return -1; + if (fd==-1) return -1; num_read = read(fd, ret, cap - 1); close(fd); - if (unlikely(num_read<=0)) return -1; + if (num_read<=0) return -1; ret[num_read] = '\0'; return num_read; } -- 2.30.2